#import "ALLayoutSegment.h"



#pragma mark Constants


#pragma mark -
#pragma mark Class Globals


#pragma mark -
@interface ALLayoutSegment (ALLayoutSegmentPrivateMethods)

@end


#pragma mark -
@implementation ALLayoutSegment

@synthesize x;
@synthesize y;
@synthesize height;


-(id)init {
	return [self initWithX:0 withY:0 withHeight:0];
}

-(id)initWithX:(CGFloat)xValue withY:(CGFloat)yValue withHeight:(CGFloat)heightValue {
	if (!(self = [super init]))
		return nil;
	[self setX:xValue];
	[self setY:yValue];
	[self setHeight:heightValue];
	return self;
}

-(CGFloat)maxY {
	return [self y] + [self height];
}

@end
